package com.klikmee.sms.core.base.communicator.starion;

import com.klikmee.sms.core.base.resolvers.AbstractServiceResolver;
import com.klikmee.sms.core.model.IncomingMessage;
import com.klikmee.sms.core.model.Service;

/**
 * Implmentatin of {@link AbstractServiceResolver} for Starion provider.
 * Tests if {@link Service#getTelenorShorCode()} matches {@link IncomingMessage#getToNumber()}
 * @author makcro
 *
 */
public class StarionServiceResolverImpl extends AbstractServiceResolver {

	@Override
	protected boolean matchProviersShortCode(IncomingMessage incomingMessage, Service service) {
		return incomingMessage.getToNumber().matches(service.getTelenorShorCode()); 
	}

}
